package com.qyhl.module_activities.act.comment;


import com.qyhl.webtv.commonlib.entity.act.ActCommentBean;

import java.util.List;

/**
 * Created by qyhl2 on 2018/1/22.
 */

public class CommentListContract {

    interface CommentListModel {
        /**
         * 获取评论
         *
         * @param actId
         */
        void getComment(int actId, int commentId);

        /**
         * 添加评论
         *
         * @param actId
         * @param content
         */
        void sendComment(int actId, String content);


    }


    interface CommentListPresenter {
        /**
         * 评论失败
         *
         * @param msg
         */
        void commentError(String msg);

        /**
         * 评论成功
         */
        void commentSuccess(boolean isshow, String msg);

        /**
         * 获取评论数据失败
         *
         * @param msg
         */
        void getCommentError(String msg, boolean isHead);

        /**
         * 获取评论数据成功
         *
         * @param data
         */
        void onSuccess(List<ActCommentBean> data, boolean isHead);

        void getComment(int actId, int commentId);

        void sendComment(int actId, String content);
    }


    interface CommentListView {


        void commentError(String msg);

        void getCommentError(String msg, boolean isHead);

        void onSuccess(List<ActCommentBean> data, boolean isHead);

        void commentSuccess(boolean isshow, String msg);

        void onEmpty(boolean isHead);
    }

}
